package com.sc.mapper;

import com.sc.pojo.Exam;
import com.sun.tools.internal.ws.processor.model.Service;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Exam record);

    int insertSelective(Exam record);

    Exam selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Exam record);

    int updateByPrimaryKey(Exam record);
    List<Exam> showHistory(@Param("name")String name, @Param("corel")Integer corel,@Param("corer")Integer corer, @Param("subject")String subject,@Param("userId")Integer userId);
    int deleteById(long id);
    List<Exam> showHistoryBack(@Param("name")String name, @Param("corel")Integer corel,@Param("corer")Integer corer, @Param("subject")String subject);
    List<Exam> selectExamShow(@Param("name")String name, @Param("subject")String subject);
    int deleteAllExam(Long ids[]);
    Exam selectOne(Long id);

    int updateType(String type);
    int addClassExam(@Param("examid") Long examid,@Param("classid") Integer classid);
    List<Exam> classExam(@Param("classid") Integer classid,@Param("subject") String subject);
}